package com.geeguo.ebuilder.client.business.system.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.geeguo.ebuilder.client.business.system.user.model.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {

    IPage<UserEntity> list(IPage<UserEntity> page, @Param("params") Map<String, Object> params);
    IPage<UserEntity> listSimple(IPage<UserEntity> page, @Param("params") Map<String, Object> params);
    List<UserEntity> search(@Param("realName") String realName, @Param("tenantCode") String tenantCode);

    UserEntity get(@Param("id") String id);

    Integer updateByParams(@Param("params") Map<String, Object> params);

    int updatePassword(@Param("id") String id, @Param("password") String password, @Param("modifyTime") Date modifyTime, @Param("modifyUser") String modifyUser);
}